<div id="pan">
	<?php echo $html->link(__('Home',true), '/'); ?> &gt; 
	<?php echo $html->link(__('User',true), '/profiles'); ?> &gt; 
	<?php echo $html->link($profile['Profile']['name'], '/articles/view/'.$profile['Profile']['id']); ?> &gt;
	<strong><?php echo __('Edit',true); ?></strong>
</div>

<h2><?php echo __('Edit Article',true); ?></h2>
<?php echo $form->create('Profile',array('action' => 'add','dojoType'=>'dijit.form.Form'));?>
<?php echo $form->hidden('user_id',array('value'=>$profiles['Profiles']['user_id'])); ?>
<dl>
	<dt><?php echo __('Display Name',true); ?></dt>
	<dd><?php echo $form->text('name',array(
			'dojoType'=>'dijit.form.TextBox',
			'required'=>'true',
		)); ?><span dojoType="dijit.Tooltip" connectId="ArticleTitle"><?php echo __('Please input a display name.',true); ?></span>
	</dd>
	<dt><?php echo __('Server',true); ?></dt>
	<dd><?php echo $form->text('server',array(
			'dojoType'=>'dijit.form.TextBox',
		)); ?><span dojoType="dijit.Tooltip" connectId="ArticleTitle"><?php echo __('Please input the server name to which you belong.',true); ?></span>
	</dd>
	<dt><?php echo __('Guild',true); ?></dt>
	<dd><?php echo $form->text('guild',array(
			'dojoType'=>'dijit.form.TextBox',
			'required'=>'true',
		)); ?><span dojoType="dijit.Tooltip" connectId="ArticleTitle"><?php echo __('Please input the guild name to which you belong.',true); ?></span>
	</dd>
	<dt><?php echo __('Message',true); ?></dt>
	<dd><?php echo $form->textarea('message',array(
			'dojoType'=>'dijit.Editor',
		)); ?>
	</dd>
	<dt><?php echo __('Url',true); ?></dt>
	<dd><?php echo $form->text('url',array(
			'dojoType'=>'dijit.form.ValidationTextBox',
			'RegExp'=>'^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$',
		)); ?><span dojoType="dijit.Tooltip" connectId="ArticleTitle"><?php echo __('Please input the server name to which you belong.',true); ?></span>
	</dd>
</dl>
<div class="action">
	<button type="submit" dojoType="dijit.form.Button" iconclass="LoreleiIcon LoreleiIconSave"><?php echo __('Save',true) ?></button>
	<button type="reset" dojoType="dijit.form.Button" iconclass="LoreleiIcon LoreleiIconReset"><?php echo __('Reset',true) ?></button>&nbsp;
	<button id="cancel" dojoType="dijit.form.Button" iconclass="LoreleiIcon LoreleiIconCancel"><?php echo __('Cancel',true) ?></button>
</div>
<?php echo $form->end();?>

<?php 
$this->addScript($javascript->codeBlock('
dojo.require("dijit.form.Button");
dojo.require("dijit.form.Form");
dojo.require("dijit.form.FilteringSelect");
dojo.require("dijit.form.TextBox");
dojo.require("dijit.form.Textarea");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.TabContainer");
dojo.require("dijit.Editor");
dojo.require("dijit._editor.plugins.EnterKeyHandling");
dojo.require("dijit._editor.plugins.TextColor");
dojo.require("dijit._editor.plugins.LinkDialog");

var user_id = "'.$article['Article']['user_id'].'";
var auth_id = "'.$auth['User']['id'].'";

dojo.addOnLoad(function (){

});
',array('inline' => false))); ?>